package com.bdqn.service;

import com.bdqn.pojo.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    User getUser(String uname,String upwd);
    User getUser(int uid);
    PageInfo<User> selectPage(int pageNum, int pageSize, String name);

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(int uid);
    int addUserRole(Integer uid, List<Integer> rids);

    int modifyStateClose(int uid);
    int modifyStateOpen(int uid);
}
